<template>
    <router-link :to="path" custom v-slot="{navigate,isActive}">
        <div v-html="mytag" @click="navigate"></div>
    </router-link>
</template>
<script>
    export default {
        props:["path","tag"],
        computed:{
            mytag(){
                return `<${this.tag}>跳转</${this.tag}>`;
            }
        }
    }
</script>

<style lang="scss" scoped>

</style>